# -*- coding: utf-8 -*-
'''
@Software: PyCharm
@File    : helper.py
@Author  : Bryan SHEN
@E-mail  : m18801919240_3@163.com
@Site    : Shanghai, China
@Time    : 2022-09-01
@Description: 
'''

import json


brands_map = json.loads(open("brands_CN_new.json", encoding="utf-8").read())

brands_map_new = {}
for br, names in brands_map.items():
    brands_map_new[br] = []
    for n in names:
        brands_map_new[br].append(n.strip())

with open("brands_CN_new_v2.json", "w", encoding="utf-8") as fw:
    fw.write(json.dumps(brands_map_new, ensure_ascii=False))


